package com.ming.elm.controller;

import com.ming.elm.po.Food;
import com.ming.elm.service.FoodService;
import com.ming.elm.service.impl.FoodServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class FoodController {

	private FoodService fs = new FoodServiceImpl();

	// 根据商家Id查询该商家的商品信息
	public Object listFoodByBusinessId(HttpServletRequest request) throws Exception{
		String str = request.getParameter("businessId");
		Integer businessId = Integer.valueOf(str);
		List<Food> foods = fs.listFoodByBusinessId(businessId);
		return foods;
	}
}
